﻿using System.ServiceModel;
using Ayatta.Contract.Component;
using Ayatta.Contract.Domain;

namespace Ayatta.Contract
{
    [ServiceContract(Namespace = ServiceContract.Namespace)]
    public interface ILogService : IService
    {
        [OperationContract]
        bool TruncateAppError();

        [OperationContract]
        AppException GetAppException(int id);

        [OperationContract]
        PagedList<AppException> GetPagedAppExceptions(int index = 1, int size = 20, byte level = 0,string machineIp = null, string userName = null,string clientIp = null);
    }
}